﻿using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Diagnostics;
using System.Xml.Serialization;
using Microsoft.SharePoint.Administration;
using System.Xml;

namespace DE.Sdc.SharePoint.Common.Deployment
{
    /// <remarks/>
    [Serializable]
    [XmlType(AnonymousType = true, Namespace = "http://sdc/2009/07/Deployment/1.0/AppConfigModifications")]
    [XmlRoot(ElementName = "Root", Namespace = "http://sdc/2009/07/Deployment/1.0/AppConfigModifications",
        IsNullable = false)]
    public class AppConfigModifications
    {
        /// <remarks/>
        [XmlElement("AppConfigModification")]
        public AppConfigModification[] Modifications { get; set; }
    }

    /// <remarks/>
    [GeneratedCode("xsd", "2.0.50727.3038")]
    [Serializable]
    [DebuggerStepThrough]
    [DesignerCategory("code")]
    [XmlType(AnonymousType = true, Namespace = "http://sdc/2009/07/Deployment/1.0/AppConfigModifications")]
    public class AppConfigModification
    {
        /// <remarks/>
        [XmlAttribute]
        public string Name { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public string XPath { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public string Owner { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public uint Sequence { get; set; }

        /// <remarks/>
        [XmlAttribute]
        public SPWebConfigModification.SPWebConfigModificationType Type { get; set; }

        /// <remarks/>
        [XmlAnyElement]
        public XmlElement XmlValue { get; set; }

        [XmlText]
        public string TextValue { get; set; }
    }
}